package com.xunyji.xunyjitest.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author AltEnter
 * @create 2019-01-08 21:24
 * @desc 测试接口
 **/
@RestController
@RequestMapping(value = "/test")
@Slf4j
public class TestController {

    /**
     * 前后端连接测试
     * @return
     */
    @GetMapping(value = "/connect")
    public String connect () {
        String msg = "前后端连接测试";
        log.info(msg);
        return msg;
    }

}

